/*    */ package system.staros.sblock1;
/*    */ 
/*    */ import java.util.List;
/*    */ 
/*    */ public class UserFunction extends Function
/*    */ {
/*    */   private List<Parameter> parameters;
/*    */   private Node body;
/*    */ 
/*    */   public UserFunction(List<Parameter> paramList, Node paramNode)
/*    */   {
/* 38 */     this.parameters = paramList;
/* 39 */     this.body = paramNode;
/*    */   }
/*    */ 
/*    */   public Node getBody() {
/* 43 */     return this.body;
/*    */   }
/*    */ 
/*    */   public int getParameterCount()
/*    */   {
/* 48 */     return this.parameters.size();
/*    */   }
/*    */ 
/*    */   public String getParameterName(int paramInt)
/*    */   {
/* 53 */     return ((Parameter)this.parameters.get(paramInt)).getName();
/*    */   }
/*    */ 
/*    */   public ZemObject getDefaultValue(int paramInt)
/*    */   {
/* 58 */     return ((Parameter)this.parameters.get(paramInt)).getDefaultValue();
/*    */   }
/*    */ 
/*    */   public ZemObject eval(Interpreter paramInterpreter, SourcePosition paramSourcePosition)
/*    */   {
/*    */     try {
/* 64 */       return this.body.eval(paramInterpreter);
/*    */     } catch (ReturnException localReturnException) {
/* 66 */       return localReturnException.getReturn();
/*    */     }
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.sblock1.UserFunction
 * JD-Core Version:    0.6.1
 */